#include <stdio.h>
#include "../../liboctopus/src/octopus.h"

int main () {
  int i = 0;
  struct octopus_context octopus;

  octopus_init (&octopus);
  octopus_open (&octopus);

  octopus_i2c_init (&octopus);

  octopus_i2c_set_bitrate (&octopus, 100);	//100kHz

  octopus_i2c_send_start(&octopus);
  octopus_i2c_send_byte(&octopus, 64);

  for(i = 0; i <= 10; i++)
  {
    printf("%d\n",i);
    octopus_i2c_send_byte(&octopus, i);
    sleep (1);
  }

  octopus_i2c_send_stop (&octopus);
  return 0;
}
